<template>
  <div @click="handleClick">Child</div>
  <p>{{ count }}</p>
</template>

<script>
export default {
  name: "Child",
  props: ["count"],
  emits: ["update:num", "update:count"],
  methods: {
    handleClick() {
      this.$emit("update:count", this.count + 1);
    },
  },
};
</script>

<style scoped></style>
